package com.cpr.demo.model;

import com.cpr.demo.dto.CprUserDto;
import lombok.Getter;
import lombok.Setter;

/**
 * @author Chen Panrui
 * created at 2022/3/17 20:11
 */
@Getter
@Setter
public class CprUser {

    private Long id;
    private String name;

    public CprUserDto buildDto(){
        return new CprUserDto(this.getId(), this.getName());
    }

}
